package com.qiy.springcloud.alibaba.controller.service;

import com.qiy.springcloud.entities.CommonResult;
import com.qiy.springcloud.entities.Payment;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "nacos-payment-provider", fallback = PaymentFallbackService.class)
public interface PaymentService {

    @GetMapping("/paymentSQL/{id}")
    public CommonResult<Payment> pamentSQL(@PathVariable("id")Long id);

}
